<?php if(!isset($_GET['listRequest'])){ ?>
<div class="panel" data-position="top" data-intro="在这里预览你领取过的任务">
    <div class="panel-heading">我的兼职</div>
    
    <div class="panel-body">
        <div class="widget-container scrollable list task-widget padded">
            <div class="widget-content" id="tempDone">
                <?php }else{  $alltask=count($tempdone);$done=0;$undone=0; ?>
                <ul>
                    <?php foreach($tempdone as $v){ ?>
                    <li onClick="_openWindow('{:U('Task_daily/tempview',['id'=>$v['id']])}',650, '查看任务','确认',  function(){   $('#tempDoneform').submit();return true;},'')" >
                        <label style="padding-left:0;padding-right:0">
                        <span class="text-muted">{$v['title']}</span>
                        <small class="text-muted"><?php echo $v['detail'] ?></small>
                        <div class="label label-warning pull-right">
                            <?php echo empty($v['proposername'])?'未领取':'已领取' ; ?>
                        </div>
                        <div class="pull-right text-muted">
                            领取人： <?php echo empty($v['proposername'])?'无':$v['proposername'] ; ?>
                            &nbsp;&nbsp;
                        </div>
                        </label>
                    </li>
                    <?php } ?>
                </ul>
                <?php }  if(!isset($_GET['listRequest'])){ ?>
                <script>$('#tempDone').ajaxlist({append:false,success:function(){}});</script>
            </div>
            <div id="tempDonepages" class="text-center">
                {$pages}
            </div>
            <form action="{:U('',['listRequest'=>1])}" id="tempDoneform" method='post'>
            </form>
        </div>
    </div>
</div>
<?php } ?>
